package com.aplink.generic.controller;

import android.content.Context;

import com.aplink.generic.pojo.GenericObject;

public class PassedActivityUnit {

    private String activityId;
    private Class<?> currentActivity;
    private Context mCurrentContext;
    /**
     * 0: must do 1: can skip
     */

    private GenericObject passedGenericObject;
    private int permission;
    private int sequence;

    public PassedActivityUnit() {
        this.passedGenericObject = new GenericObject();
        this.setActivityId( "" );
    }

    public PassedActivityUnit( Class<?> _activity, GenericObject _genericObject,
                               String _activityId, int _seq, int _permission ) {
        this.currentActivity = _activity;
        this.passedGenericObject = new GenericObject();
        this.passedGenericObject = _genericObject;

        this.activityId = _activityId;
        this.sequence = _seq;
        this.setPermission( _permission );
    }

    public PassedActivityUnit( Class<?> _activity, String _activityId, int _seq,
                               int _permission ) {
        this.currentActivity = _activity;
        this.activityId = _activityId;
        this.sequence = _seq;
        this.setPermission( _permission );
    }

    public String getActivityId() {
        return this.activityId;
    }

    public Class<?> getCurrentActivity() {
        return this.currentActivity;
    }

    public Context getmCurrentContext() {
        return this.mCurrentContext;
    }

    public GenericObject getPassedGenericObject() {
        return this.passedGenericObject;
    }

    public int getPermission() {
        return this.permission;
    }

    public int getSequence() {
        return this.sequence;
    }

    public void setActivityId( String activityId ) {
        this.activityId = activityId;
    }

    public void setCurrentActivity( Class<?> currentActivity ) {
        this.currentActivity = currentActivity;
    }

    public void setmCurrentContext( Context mCurrentContext ) {
        this.mCurrentContext = mCurrentContext;
    }

    public void setPassedGenericObject( GenericObject passedGenericObject ) {
        this.passedGenericObject = passedGenericObject;
    }

    public void setPermission( int permission ) {
        this.permission = permission;
    }

    public void setSequence( int sequence ) {
        this.sequence = sequence;
    }

}
